home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 005 / pal14.arc / PALDEMO.BAT < prev    next >
Encoding:
DOS Batch File  |  1986-08-26  |  3.4 KB  |  114 lines

  1. ECHO OFF
  2. IF NOT EXIST DICK.APP GOTO GETFILES
  3. IF NOT EXIST JANE.APP GOTO GETFILES
  4. IF NOT EXIST PAL.COM GOTO GETFILES
  5. IF NOT EXIST PAL14.000 GOTO GETFILES
  6. IF NOT EXIST PAL14.001 GOTO GETFILES
  7. IF NOT EXIST PAL14.HLP GOTO GETFILES
  8. :START
  9. CLS
  10. echo  
  11. echo       This batch file will demonstrate some of the features of
  12. echo  PAL.  We will first show a report of DICK.APP starting on January
  13. echo  1, 1985, for a period of five days.  You will note that Dick has
  14. echo  entered each of his appointments beginning with the string "D-".
  15. echo  This is to distinguish his appointments from Jane's when we
  16. echo  combine their appointments and report on them together.
  17. echo  
  18. echo       Note at the end of the report that Dick has an old reminder.
  19. echo  He was supposed to get an engagement ring for Jane yesterday.
  20. echo  
  21. echo  
  22. PAUSE
  23. PAL @ 5 DICK
  24. PAUSE
  25. CLS
  26. echo  
  27. echo       We will now show Jane's appointments.  Note that it's a bit
  28. echo  difficult to see whether there are any conflicts with Dick's
  29. echo  appointments when we can't see both together.
  30. echo  
  31. echo  
  32. PAUSE
  33. PAL @ 5 JANE
  34. PAUSE
  35. CLS
  36. echo  
  37. echo       This batch file will now combine the two separate
  38. echo  appointment files into a single file, then call on PAL to report
  39. echo  from the amalgamated file.  Note how PAL shows common appointments
  40. echo  and conflicting appointments.
  41. echo  
  42. echo       Query:  What chance does Dick have to get Jane to marry him?
  43. echo  
  44. echo  
  45. PAUSE
  46. COPY /B DICK.APP+JANE.APP DIKNJAN.APP
  47. PAL @ 5 DIKNJAN
  48. PAUSE
  49. CLS
  50. echo  
  51. echo       Answer to previous question:  They'd better have a lot more
  52. echo  in common than political leanings and musical taste!
  53. echo  
  54. echo       We will now demonstrate the ability to search a file for a
  55. echo  particular string of characters.  You may remember that all of
  56. echo  Dick's appointments were preceded by the characters "D-" in order
  57. echo  to distinguish them from Jane's appointments in the DIKNJAN.APP
  58. echo  file.
  59. echo  
  60. echo  
  61. PAUSE
  62. PAL @ $ D- DIKNJAN
  63. PAUSE
  64. erase diknjan.app
  65. CLS
  66. echo  
  67. echo       Now, let's take a look at something pretty sexy:  With
  68. echo  SideKick, you can now enter an appointment that you need to see
  69. echo  annually, and PAL will show it to you forever (well, at
  70. echo  least until you don't want to see it anymore).  Let's take
  71. echo  a peek at the annual appointment that Jane has placed in
  72. echo  her file, for the next 10 years starting from your present
  73. echo  system date.  Jane was born on February 29, 1960!
  74. echo  
  75. echo  
  76. PAUSE
  77. PAL 3650 JANE
  78. PAUSE
  79. CLS
  80. echo  
  81. echo       And now let's see the monthly appointment that Dick
  82. echo  has placed in his file.  Let's make PAL show us those
  83. echo  monthly appointments for a full year from today.
  84. echo  
  85. echo  
  86. PAUSE
  87. PAL 365 DICK
  88. pause
  89. cls
  90. echo  
  91. echo       "Fun With Dick and Jane" has been brought to you by PAL
  92. echo  Software NY, creators of PAL, the Personal Appointment Locator for
  93. echo  SideKick.
  94. echo  
  95. echo       To obtain help on the features of PAL and how to
  96. echo  operate the program, go "PAL HELP" at the DOS command line.
  97. echo  
  98. echo       Please enjoy the program!
  99. echo  
  100. echo  
  101. echo  
  102. echo  Use Ctrl-Break to halt the demonstration, but if you
  103. echo  want to see it again then
  104. PAUSE
  105. GOTO START
  106. :GETFILES
  107. CLS
  108. echo   You need the files DICK.APP and JANE.APP,
  109. echo   in order to run this demo.
  110. echo  
  111. echo   Required program files are PAL.COM,
  112. echo   PAL14.000, PAL14.001 and PAL14.HLP.
  113. GOTO ENDIT
  114. :ENDIT